package com.github.catvod.spider.merge;

import java.io.IOException;
import java.util.Arrays;
import java.util.Map;
import javax.annotation.Nullable;

public class tF implements Map.Entry<String, String>, Cloneable {
  private static final String[] h = new String[] { 
      "allowfullscreen", "async", "autofocus", "checked", "compact", "declare", "default", "defer", "disabled", "formnovalidate", 
      "hidden", "inert", "ismap", "itemscope", "multiple", "muted", "nohref", "noresize", "noshade", "novalidate", 
      "nowrap", "open", "readonly", "required", "reversed", "seamless", "selected", "sortable", "truespeed", "typemustmatch" };
  
  private String V0;
  
  @Nullable
  private String j;
  
  @Nullable
  QF q;
  
  public tF(String paramString1, @Nullable String paramString2, @Nullable QF paramQF) {
    R2.u(paramString1);
    paramString1 = paramString1.trim();
    R2.BQ(paramString1);
    this.V0 = paramString1;
    this.j = paramString2;
    this.q = paramQF;
  }
  
  protected static boolean BQ(String paramString) {
    boolean bool;
    if (Arrays.binarySearch((Object[])h, paramString) >= 0) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  protected static void oC(String paramString1, @Nullable String paramString2, Appendable paramAppendable, HZ.Tw paramTw) {
    paramAppendable.append(paramString1);
    if (!u(paramString1, paramString2, paramTw)) {
      paramAppendable.append("=\"");
      XR.I(paramAppendable, QF.W(paramString2), paramTw, true, false, false);
      paramAppendable.append('"');
    } 
  }
  
  protected static boolean u(String paramString1, @Nullable String paramString2, HZ.Tw paramTw) {
    boolean bool;
    if (paramTw.Qy() == HZ.Tw.Tw.h && (paramString2 == null || ((paramString2.isEmpty() || paramString2.equalsIgnoreCase(paramString1)) && BQ(paramString1)))) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  protected void I(Appendable paramAppendable, HZ.Tw paramTw) {
    oC(this.V0, this.j, paramAppendable, paramTw);
  }
  
  public String V0() {
    return this.V0;
  }
  
  public String W(String paramString) {
    String str = this.j;
    QF qF = this.q;
    if (qF != null) {
      String str1 = qF.oq(this.V0);
      int i = this.q.y(this.V0);
      str = str1;
      if (i != -1) {
        this.q.j[i] = paramString;
        str = str1;
      } 
    } 
    this.j = paramString;
    return QF.W(str);
  }
  
  public boolean equals(Object paramObject) {
    boolean bool = true;
    if (this == paramObject)
      return true; 
    if (paramObject == null || tF.class != paramObject.getClass())
      return false; 
    paramObject = paramObject;
    String str = this.V0;
    if ((str != null) ? !str.equals(((tF)paramObject).V0) : (((tF)paramObject).V0 != null))
      return false; 
    str = this.j;
    paramObject = ((tF)paramObject).j;
    if (str != null) {
      bool = str.equals(paramObject);
    } else if (paramObject != null) {
      bool = false;
    } 
    return bool;
  }
  
  public tF h() {
    try {
      return (tF)super.clone();
    } catch (CloneNotSupportedException cloneNotSupportedException) {
      throw new RuntimeException(cloneNotSupportedException);
    } 
  }
  
  public int hashCode() {
    byte b;
    String str = this.V0;
    int i = 0;
    if (str != null) {
      b = str.hashCode();
    } else {
      b = 0;
    } 
    str = this.j;
    if (str != null)
      i = str.hashCode(); 
    return b * 31 + i;
  }
  
  public String j() {
    return QF.W(this.j);
  }
  
  public String q() {
    StringBuilder stringBuilder = ZG.V0();
    try {
      HZ hZ = new HZ();
      this("");
      I(stringBuilder, hZ.TD());
      return ZG.t(stringBuilder);
    } catch (IOException iOException) {
      throw new zx(iOException);
    } 
  }
  
  public String toString() {
    return q();
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/tF.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */